package org.example.model;   //这个模型用于接收微信API的响应。

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class WechatUserInfo {

    private Long id;

    @JsonProperty("openid")
    private String openid;

    @JsonProperty("session_key")
    private String sessionKey;

    // getters and setters
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }
}
